package org.fitweb.examples;

import org.fitweb.runners.SingleTestRunner;
import org.junit.Test;

/**
 * As a substitute for Anyrunner, you can create a simple test class to run Fit tests. Useful on your machine, not so
 * useful for the continuous integration build. For that, use a subclass of the ParameterisedSuiteRunner (see
 * ExampleTestSuite)
 */
public class ExampleSingleTestRunner {

    private static final String TESTS_DIRECTORY = "tests";
    private static final String OUPUT_DIRECTORY = "out/test-results";

    @Test
    public void runSingleFitTest() throws Exception {
        new SingleTestRunner(TESTS_DIRECTORY, OUPUT_DIRECTORY, "Fixture Gallery.html").runSingleTest();
    }
}
